From 2bf5831d513dc22925a5fb6becefe868a38209ce Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 3 May 2005 16:02:36 +0000 Subject: [PATCH] Strip_html() should always return an allocated string for consistency. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1146 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/util.c b/gpsbabel/util.c index ae4453d0f..d1a5fa82a 100644 --- a/gpsbabel/util.c +++ b/gpsbabel/util.c @@ -972,7 +972,7 @@ strip_html(const utf_string *in) short int taglen; if (!in->is_html) - return in->utfstring; + return xstrdup(in->utfstring); /* * We only shorten, so just dupe the input buf for space. */ -- 2.30.2